package org.jeecg.modules.engineering.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.engineering.entity.EquipDataCurrent;
import org.jeecg.modules.engineering.entity.EquipInfo;
import org.jeecg.modules.engineering.mapper.EquipDataCurrentMapper;
import org.jeecg.modules.engineering.service.IEquipDataCurrentService;
import org.jeecg.modules.engineering.vo.EquipDataVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 设备采集数据实时信息
 * @Author: jeecg-boot
 * @Date:   2020-04-02
 * @Version: V1.0
 */
@Service
public class EquipDataCurrentServiceImpl extends ServiceImpl<EquipDataCurrentMapper, EquipDataCurrent> implements IEquipDataCurrentService {

    @Autowired
    private EquipDataCurrentMapper equipDataCurrentMapper;

    @Override
    public IPage<EquipDataVO> selectSqlList(Page<EquipDataVO> page, EquipDataVO equipDataVO, List<String> projectIds) {
        return page.setRecords(equipDataCurrentMapper.selectSqlList(page,equipDataVO,projectIds));
    }
}
